package com.victor.entity;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 景区小景点表
 * 
 * @author zhangbin
 *
 */
@Entity
@Table(name = "jingqujingdian")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Jingqujingdian {
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY) // 主键类型--自动递增生成
	@Column(name = "id", unique = true, nullable = false, length = 11)
	private Integer id;// 编号,

	@Column(name = "jqid", length = 50)
	private String jqid;// 关联ID,

	@Column(name = "jdname", length = 50)
	private String jdname;// 景点名称,

	@Column(name = "jdlocation_lon", length = 50)
	private String jdlocation_lon;// 景点定位经度
	
	@Column(name = "jdlocation_lat", length = 50)
	private String jdlocation_lat;// 景点定位纬度
	

//	@Column(name = "jdjianjie", length = 50)
//	private String jdjianjie;// 景点简介,  TODO

	@Column(name = "jdvoice", length = 50)
	private String jdvoice;// 语音简介,

	@Column(name = "lineup", length = 50)
	private String lineup;// 排队,

	@Column(name = "jdvideo", length = 50)
	private String jdvideo;// 景点视频

	@Transient
	private List<Jingdiantupian> jingdiantupians;// 景点图片list
	
	@Transient
	private List<Jingdianintroduce> jingdianintroduces;// 景点简介list
}
